﻿using System.Web.Mvc;

namespace dt02.Controllers {

    public class MockInterviewController : Controller {
        public ActionResult Index() {
            return View();
        }
        public ActionResult Dashboard() {
            return View();
        }
        public ActionResult Login() {
            return View();
        }
        public ActionResult Signup() {
            return View();
        }
        public ActionResult SignupConfirmation() {
            return View();
        }
        public ActionResult ManageProfile() {
            return View();
        }
        public ActionResult Details() {
            return View();
        }
        [HttpPost]
        public ActionResult VerifyLoginAttempt(string username, string password) {
            var valid = true;
            if (valid) {
                return RedirectToAction("Dashboard", "MockInterview");
            } else {
                return RedirectToAction("Login", "MockInterview");
            }
        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="firstName"></param>
        /// <param name="lastName"></param>
        /// <param name="email"></param>
        /// <param name="phone"></param>
        /// <param name="company"></param>
        /// <returns></returns>
        [HttpPost]
        public ActionResult RegisterInterviewer(string firstName, string lastName, string email, string phone, string company) {
            var accepted = true;
            if (accepted) {
                return RedirectToAction("Login", "MockInterview");
            } else {
                return RedirectToAction("Signup", "MockInterview");
            }
        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="code"></param>
        /// <returns></returns>
        [HttpPost]
        public ActionResult VerifyRegistrationCode(string code) {
            var accepted = true;
            if (accepted) {
                return RedirectToAction("Login", "MockInterview");
            } else {
                return RedirectToAction("Signup", "MockInterview");
            }
        }
    }
}